package com.yami.shop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.SupplierCategory;

import java.util.List;

/**
 *
 *
 * @author Citrus
 * @date 2021-09-07 10:12:32
 */
public interface SupplierCategoryService extends IService<SupplierCategory> {

    /**
     * 获取供应商分类列表
     * @param shopId
     * @param isAll 是否搜索全部，1为全部，0为搜索启用的
     * @return
     */
    List<SupplierCategory> listSupplierCategory(Long shopId,Integer isAll);

    /**
     * 改变分类状态
     * @param supplierCategoryId
     */
    void changeCategory(Long supplierCategoryId);

    /**
     * 清除缓存
     * @param shopId
     * @param isAll
     */
    void removeSupplierCategoryCache(Long shopId,Integer isAll);
}
